<p class="Paragraph">Text: Any string expression that contains the drive letter of the new drive. The <help:link Id="66636" Eid="urllocal" xmlns:help="http://openoffice.org/2000/help">URL notation</help:link> can also be used here.</p>
<p class="Paragraph">The drive must be assigned with a capital letter and is restricted by the settings in LASTDRV. If the drive argument is a multiple-character string, only the first letter is relevant. If you attempt to access a non-existent drive, an error occurs which you can respond to with the OnError statement.</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleCHDrive</p>
<p class="PropText">ChDrive "D" <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>REM Only possible if a drive 'D' exists.</p>